package com.yjs.app.trade.service.mapper.business.order;

import java.util.List;
import java.util.Map;

import com.yjs.app.trade.core.base.mybatis.annotation.MyBatisRepository;
import com.yjs.app.trade.entity.bean.BacthInfo;
import com.yjs.app.trade.service.service.util.bean.OrderDetailInfo;

/**
 * 订单相关的dao层接口
 * 
 * @author Administrator
 *
 */
@MyBatisRepository
public interface OrderMapper {
	
	/**
	 * 根据订单ID查询批次信息
	 * @return
	 */
	List<BacthInfo> findBacthsByOrderIds(List<String> list);
	
	/**
	 * 查询库存
	 */
	List<Map<String, Object>> findShareNumberByDispatchIdAndDrugCode(Map<String, Object> map);
	
	/**
	 * 查询待收货订单信息
	 */
	List<OrderDetailInfo> findOrderByBacthNo(OrderDetailInfo orderDetailInfo);
	/**
	 * 根据订单编号查询memberId
	 *
	 * @param orderNumber
	 * @return
	 */
	Map<String,Object> findOrderMemberId(String orderNumber);
	/**
	 * 根据搜索条件查询订单统计信息
	 *
	 * @param orderNumber
	 * @return
	 */
	Map<String,Object> countOrderInfoByOrderInfoId(Map<String, Object> map);
	/**
	 * 根据订单号查询订单详情号
	 * @param orderNo
	 * @return
	 */
	List<Map<String, String>> findOrderNumber(String orderNo);
	
	Map<String, Object> findDispatchTodayTotalOrderInfo(String dispatchId);
	
	Map<String, Object> findSellerTodayTotalOrderInfo(String sellerId);
	
	Map<String, Object> findSellerPassportTodayTotalOrderInfo(Map<String, Object> map);
	
	Map<String, Object> findDispatchPassportTodayTotalOrderInfo(Map<String, Object> map);
	
	String findOrderDetailInfoByOrderDetailNo(String orderDetailNo);
}
